
<%@page contentType="text/html;charset=UTF-8"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="com.googlecode.garbagecan.springsecuritystudy.message.service.MessageService"%>
<%
    ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(application);
    MessageService messageService = (MessageService) ctx.getBean("messageService");
    out.println(messageService.userMessage());
%>
<div>
	<a href="index.jsp">Index</a>
	<a href="j_spring_security_logout">Logout</a>
</div>
